﻿using NetworkFlowMonitor.Scripts.Service;

namespace NetworkFlowMonitor.Scripts;

public static class Extensions
{
    public static bool IsActive(this Device device)
    {
        return (DateTime.UtcNow - device.LastSeen).TotalMinutes <= 1;
    }
}